package cate.game.server.configuration.dao.game;

import cate.game.db.mongo.play.PlayDao;
import cate.game.play.proce.play.PlayPO;
import cate.game.server.configuration.dao.MgIdHexDao;


public class MgPlayDao extends MgIdHexDao<PlayPO> implements PlayDao {

    @Override
    protected void writeIdHex(PlayPO entity, String idHex) {
        entity.uid = idHex;
    }

    @Override
    protected String readIdHex(PlayPO entity) {
        return entity.uid;
    }

    @Override
    protected Class<PlayPO> getEntityClass() {
        return PlayPO.class;
    }
}
